home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmTextSetSource.z / XmTextSetSource
Encoding:
Text File  |  2003-11-18  |  3.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee((((3333XXXX))))       UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV       XXXXmmmmTTTTeeeexxxxttttSSSSeeeettttSSSSoooouuuurrrrcccceeee((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_T_e_x_t_S_e_t_S_o_u_r_c_e - A Text function that sets the source of
  10.       the widget
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/Text.h>
  14.  
  15.       void XmTextSetSource (wwwwiiiiddddggggeeeetttt,,,,    ssssoooouuuurrrrcccceeee,,,,    ttttoooopppp____cccchhhhaaaarrrraaaacccctttteeeerrrr,,,, ccccuuuurrrrssssoooorrrr____ppppoooossssiiiittttiiiioooonnnn)
  16.            _W_i_d_g_e_t     wwwwiiiiddddggggeeeetttt;
  17.            _X_m_T_e_x_t_S_o_u_r_c_essssoooouuuurrrrcccceeee;
  18.            _X_m_T_e_x_t_P_o_s_i_t_i_o_nttttoooopppp____cccchhhhaaaarrrraaaacccctttteeeerrrr;
  19.            _X_m_T_e_x_t_P_o_s_i_t_i_o_nccccuuuurrrrssssoooorrrr____ppppoooossssiiiittttiiiioooonnnn;
  20.  
  21.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.       _X_m_T_e_x_t_S_e_t_S_o_u_r_c_e sets the source of the Text widget.  Text
  23.       widgets can share sources of text so that editing in one
  24.       widget is reflected in another.  This    function sets the
  25.       source of one    widget so that it can share the    source of
  26.       another widget.
  27.  
  28.       Setting a new    text source destroys the old text source if no
  29.       other    Text widgets are using that source.  To    replace    a text
  30.       source but keep it for later use, create an unmanaged    Text
  31.       widget and set its source to the text    source you want    to
  32.       keep.
  33.  
  34.       wwwwiiiiddddggggeeeetttt
  35.            Specifies the Text widget ID
  36.  
  37.       ssssoooouuuurrrrcccceeee
  38.            Specifies the source with which the widget displays
  39.            text.  This can be a value returned by the
  40.            _X_m_T_e_x_t_G_e_t_S_o_u_r_c_e(_3_X) function.  If no source is
  41.            specified, the widget creates a default string source.
  42.  
  43.       ttttoooopppp____cccchhhhaaaarrrraaaacccctttteeeerrrr
  44.            Specifies the position in the text to display at    the
  45.            top of the widget.  This    is an integer number of
  46.            characters from the beginning of    the text buffer.  The
  47.            first character position    is 0.
  48.  
  49.       ccccuuuurrrrssssoooorrrr____ppppoooossssiiiittttiiiioooonnnn
  50.            Specifies the position in the text at which the insert
  51.            cursor is located.  This    is an integer number of
  52.            characters from the beginning of    the text buffer.  The
  53.            first character position    is 0.
  54.  
  55.       For a    complete definition of Text and    its associated
  56.       resources, see _X_m_T_e_x_t(_3_X).
  57.  
  58.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  59.       _X_m_T_e_x_t(_3_X).
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.